package com.example.navigation.api.device

import com.example.navigation.api.ResponseData
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Created with IntelliJ IDEA.
 * @Author: Liao Run
 * @Date: 2024-06-10 3:38
 * @Description:
 **/
interface DeviceApi {

    @GET("/sbcar/getSb_car")
    suspend fun getDevices(@Query("id") id: String): ResponseData<Devices>
}

data class Device(val car_bq: String, val car_name: String, val id: Int)
typealias Devices = List<Device>